import request2 from '@/utils/request2'

export function Message(params) {
  return request2({
    url: '/old/message/index',
    method: 'post',
    params
  })
}
export function create(data) {
  return request2({
    url: '/old/message/create',
    method: 'post',
    data
  })
}
export function edit(data) {
  return request2({
    url: '/old/message/edit',
    method: 'post',
    data
  })
}
export function del(id) {
  return request2({
    url: '/old/message/delete',
    method: 'get',
    params: { id: id }
  })
}
export function Upload(data) {
  return request2({
    url: '/old/message/upload',
    method: 'post',
    data
  })
}